using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples()
{
void Example()
{
TVec a,b,c;
MtxVec.CreateIt(
out a,
out b,
out c);
try
{
a.SetIt(
false,
new double[] {0,1,10,-1,-10});
// a = [0, 1, 10, -1, -10];
b.SetIt(
false,
new double[],{0,1,System.Math.PI,-1,-System.Math.PI});
// b = [0, 1, Pi, -1, -Pi];
c.Rem(a,b);
// c = [0, 0, 0.5752, 0, -0.5752]
}
finally
{
MtxVec.FreeIt(
ref a,
ref b,
ref c);
}
}
}